﻿
@{
    ViewBag.Title = "Add";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}


<div class="add-employee-wraper">
    <div class="admin-nav">
        <div class="nav-text">
            <span>
                @TempData["f-nav"] > @TempData["s-nav"]
            </span>
        </div>
    </div>
    <form action="/Manage/AddEmployee" method="post" class="layui-form layui-form-pane add-form">
        <div class="box">
            <div class="box-head">
                <div class="box-title">
                    <img src="~/Image/icon_addthing.png"/>
                    <span style="margin-left:5px;">
                        新增员工
                    </span>
                </div>
                <div class="box-tool">
                </div>
            </div>
            <div class="box-body">
                <div class="add-left-wrap">
                    <div class="layui-form-item">
                        <label class="layui-form-label">员工姓名</label>
                        <div class="layui-input-block">
                            <input id="employee-name" class="layui-input" name="Name" />
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系电话</label>
                        <div class="layui-input-block">
                            <input id="employee-phonenumber" class="layui-input" name="PhoneNumber" />
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">E-mail</label>
                        <div class="layui-input-block">
                            <input id="employee-email" class="layui-input" name="Email" />
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">性别</label>
                        <div class="layui-input-block">
                            <input type="radio" name="Gender" value="1" title="男" checked="" />
                            <input type="radio" name="Gender" value="0" title="女" />
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">默认密码</label>
                        <div class="layui-input-inline check-input">
                            <input type="checkbox" checked name="open" lay-skin="switch" lay-filter="swicth" lay-text="是|否" />
                        </div>
                        <div class="layui-form-mid layui-word-aux">默认密码为123456</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">分配权限</label>
                        <div class="layui-input-inline check-input" width="100px">
                            <input type="checkbox" checked name="close" lay-skin="switch" lay-filter="swicth" lay-text="是|否" />
                        </div>
                        <div class="layui-form-mid layui-word-aux">权限配置已显示</div>
                    </div>
                </div>
                <div class="add-right-wrap">
                    <div class="permissions-title">权限配置:</div>
                    <div class="layui-field-box">
                        <ul id="permissions_tree" class="ztree"></ul>
                    </div>
                </div>
                <div class="add-employee-bt">
                    <button id="add-submit" lay-filter="addEmployee" lay-submit="" class="layui-btn btn-gradient-blue">添加员工</button>
                </div>
            </div>
        </div>
        <div class="logo-panel">
            <img src="~/Image/bubble_addstaff.png" />
        </div>
    </form>
    
</div>

@section Styles{
    <link href="~/Content/zTree.min.css" rel="stylesheet" />
    <link href="~/CSS/add-employee.css" rel="stylesheet" />
}

@section Scripts{
    <script src="~/Scripts/jquery-3.1.1.min.js"></script>
    <script src="~/Scripts/jquery.ztree.all-3.5.min.js"></script>
    <script src="~/JS/AddEmployee.js"></script>
}